<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="includes/top.jsp"/>

<form:form modelAttribute="FormFeedsOnCategory" action="selectFeeds.htm">
    <ul>
        <c:forEach var="feed" items="${feeds}">
        <li>
            <form:checkbox value="${feed.id}" path="feedIds" />
            <a href="feed.htm?id=${feed.id}" title="${feed.title}">${feed.title}</a>
        </li>
        </c:forEach>
    </ul>
    <form:hidden path="categoryId" />
    <input type="submit" value="Add to category" />
</form:form>

<jsp:include page="includes/bottom.jsp"/>